package org.qydjk.console.vo.es;

import org.qydjk.common.util.es.ESearchColumn;
import org.qydjk.common.util.es.ESearchColumnType;

import java.math.BigDecimal;
import java.util.List;

public class TestProduct {
    @ESearchColumn
    private Integer pid;
    @ESearchColumn
    private String name;
    @ESearchColumn
    private String intro;
    @ESearchColumn
    private String content;
    @ESearchColumn
    private String kw;
    @ESearchColumn
    private String imgUrl;
    @ESearchColumn
    private String startTime;
    @ESearchColumn
    private String endTime;
    @ESearchColumn
    private BigDecimal originPrice;
    @ESearchColumn
    private BigDecimal price;
    @ESearchColumn(type = ESearchColumnType.LIST_STRING)
    private List<String> tags;
    @ESearchColumn(type = ESearchColumnType.LIST_STRING)
    private List<String> cities;
    @ESearchColumn(type = ESearchColumnType.LOCATION)
    private TestLoc sellerLoc;

    public Integer getPid() {
        return pid;
    }

    public void setPid(Integer pid) {
        this.pid = pid;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getIntro() {
        return intro;
    }

    public void setIntro(String intro) {
        this.intro = intro;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getKw() {
        return kw;
    }

    public void setKw(String kw) {
        this.kw = kw;
    }

    public String getImgUrl() {
        return imgUrl;
    }

    public void setImgUrl(String imgUrl) {
        this.imgUrl = imgUrl;
    }

    public String getStartTime() {
        return startTime;
    }

    public void setStartTime(String startTime) {
        this.startTime = startTime;
    }

    public String getEndTime() {
        return endTime;
    }

    public void setEndTime(String endTime) {
        this.endTime = endTime;
    }

    public BigDecimal getOriginPrice() {
        return originPrice;
    }

    public void setOriginPrice(BigDecimal originPrice) {
        this.originPrice = originPrice;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    public List<String> getTags() {
        return tags;
    }

    public void setTags(List<String> tags) {
        this.tags = tags;
    }

    public List<String> getCities() {
        return cities;
    }

    public void setCities(List<String> cities) {
        this.cities = cities;
    }

    public TestLoc getSellerLoc() {
        return sellerLoc;
    }

    public void setSellerLoc(TestLoc sellerLoc) {
        this.sellerLoc = sellerLoc;
    }

    @Override
    public String toString() {
        return "TestProduct{" +
                "pid=" + pid +
                ", name='" + name + '\'' +
                ", intro='" + intro + '\'' +
                ", content='" + content + '\'' +
                ", kw='" + kw + '\'' +
                ", imgUrl='" + imgUrl + '\'' +
                ", startTime='" + startTime + '\'' +
                ", endTime='" + endTime + '\'' +
                ", originPrice=" + originPrice +
                ", price=" + price +
                ", tags=" + tags +
                ", cities=" + cities +
                ", sellerLoc=" + sellerLoc +
                '}';
    }
}
